<?php

use yii\db\Migration;
use yii\db\Schema;

class m170801_032516_ADD_COLUMN_ORDER_PRICE_TYPE extends Migration
{
    public function up()
    {

        $this->addColumn('{{order_price_type}}', 'type', Schema::TYPE_INTEGER. "(1)  DEFAULT 1 COMMENT '1 普通类型 2 必选附加费' ");
    }

    public function down()
    {
        echo "m170801_032516_ADD_COLUMN_ORDER_PRICE_TYPE cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
